from django.db import models

class Bookmark(models.Model):
    title = models.CharField(maxlength=50)
    url = models.URLField(verify_exists=True)
    note = models.TextField(blank=True)

    class Admin:
        list_display = ('title', 'url', )
        search_fields = ('title', 'url', 'note', )

    def __str__(self):
        return self.title
